<template>
	<view class="cont">
		<!-- <view class="breakLine"></view> -->
		
		<view class="cont-list">
			<navigator url="qiyeyujing.1">
				<view class="cont-list-cell">
					<view class="cell-cont">
						<view class="cell-cont-text">
							<view class="cell-cont-text-title">
								<text>隐患信息</text>
							</view>
							<view class="cell-cont-text-cont">
								<text>上报人：姚明</text>
							</view>
						</view>
						<view class="cell-cont-image">
							
						</view>
					</view>
					
					<view class="cell-foot">
						<view class="cell-foot-lable">
							<text>整改状态</text>
						</view>
						<view class="cell-foot-val">
							<text>未整改</text>
						</view>
					</view>
				</view>
			</navigator>
		</view>
	</view>
</template>

<script>
	import API from '../../common/api.js';
	
	export default {
		data() {
			return {
				company: '',
				warningList: []
			}
		},
		onLoad() {
			var that = this;
			
			that.company = uni.getStorageSync("company");
			that.getIndexWarning();
		},
		methods:{
			getIndexWarning(){
				var that = this;
				
				uni.request({
					url:API.getIndexWarning,
					data:{
						company: that.company
					},
					method:"POST",
					header:API.get_head(),
					success: (res) => {
						console.log("res==>", res);
						
						if(res.data.success){
							
						}else{
							uni.showToast({
								title:res.data.message,
								icon:"none"
							})
						}
					},
					fail: () => {
						uni.showToast({
							title:"加载失败",
							icon:'none'
						})
					}
				});
			},
		}
	}
</script>

<style>
	page{background-color: #FFFFFF;}
	.breakLine{background:#ececec;height: 30upx;}
	.cont-list-cell{padding: 20upx;position: relative;}
	.cont-list-cell:after{content: "";display: block;position: absolute;left: 0;bottom: 0;width: 100vw;height: 2upx;background-color: #ececec;}
	.cell-cont,.cell-foot{display: flex;flex-direction: row;justify-content: space-between;}
	.cell-cont-text{flex: 1;}
	.cell-cont-text-title{font-size: 44upx;}
	.cell-cont-image{width: 300upx;}
	.cell-foot .cell-foot-lable,.cell-foot .cell-foot-val{flex: 1;}
	
	
</style>
